package com.qdu.service.impl;

import com.qdu.entity.Shareinformation;
import com.qdu.mapper.ShareinformationMapper;
import com.qdu.service.ShareInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ShareInformationServiceImpl implements ShareInformationService {

    @Autowired
    private ShareinformationMapper shareinformationMapper;

    @Override
    public void insert(Shareinformation record) {
        shareinformationMapper.insert(record);
    }

    @Override
    public void insertSelective(Shareinformation record) {
        shareinformationMapper.insertSelective(record);
    }

    @Override
    public Shareinformation selectByHid(String hid) {
        return shareinformationMapper.selectByHid(hid);
    }

    @Override
    public List<Shareinformation> selectByMid(String mid) {
        return shareinformationMapper.selectByMid(mid);
    }

    @Override
    public List<Shareinformation> selectByUid(String uid) {
        return shareinformationMapper.selectByUid(uid);
    }

    @Override
    public void deleteByHid(String hid) {
        shareinformationMapper.deleteByHid(hid);
    }

    @Override
    public void updateByPrimaryKey(Shareinformation record) {
        shareinformationMapper.updateByPrimaryKey(record);
    }

    @Override
    public void updateByPrimaryKeySelective(Shareinformation record) {
        shareinformationMapper.updateByPrimaryKeySelective(record);
    }
}
